import request from '@/request'

export function findAll(data) {
    return request.post("bed/findByPage",data);
}


export function doimportxls(){
    return request.post("bed/import");
}

export function doexportxls(){
    return request.get('bed/download');
}
export function doSaveOrUpdate(data){
    let path = data.bedId ? "update" : "save";
    return request.post(`bed/${path}`, data);
}

export function dofindAllDept(data){
    return request.post("bed/findAllDept",data,request.textConfig);
}
export function dofindAllHome(data){
    return request.post("bed/findAllHome",data);
}
export function dofindAllShareholder(){
    return request.post("bed/findAllShareholder");
}


export function del(hId){
   
    return request.post("bed/delete", hId ,request.textConfig);
}